import express from 'express';
import * as actorController from './actor.controller';
const router = express.Router();
import { validateLoginData, authGuard, userGuard } from '../auth/auth.middleware';

/**
 * 获取内容
 */
router.get('/actors', userGuard, actorController.index);

/**
 * 获取内容(按 ID)
 */
router.get('/actor/:postId', userGuard, actorController.actorDetail);

/**
 * 获取演员(按 ID)
 */
router.post('/getactors', userGuard, actorController.actors);

/**
 * 创建内容
 */
router.post('/actor', actorController.store);

/**
 * 删除内容
 */
router.post('/actorDestroy', authGuard, actorController.destroy);


/**
 * 导出路由
 */
export default router;
